import { instance, unwrap } from './utils'

export async function listAreas(pid: string) {
  const res = await instance.post<API.Res<Data[]>>('/tools/area/getAreaList', null, { params: { parentId: pid } })
  return unwrap(res)
}
